import requests
from pyquery import PyQuery as pq
cookies={}
headers={
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0"
}
raw_cookies='ll="108288"; bid=PC7Z0h_TGo4; dbcl2="172293960:dG0YZKrbDiM"; ck=4LwD; _pk_ref.100001.8cb4=%5B%22%22%2C%22%22%2C1515404236%2C%22https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Di2NHI3hcUY1Qd7YJbwsiP8B0-bSDrhzYqkfNDVWhIv_dfxVGdwfSDE1GfBi2v_BJ%26wd%3D%26eqid%3Dab1bee3400036d32000000025a533bcd%22%5D; _pk_id.100001.8cb4=c2a50414704bfbeb.1515404236.1.1515404353.1515404236.; _pk_ses.100001.8cb4=*; gr_user_id=8132d9f8-d223-4678-93b9-2172707898f6; gr_session_id_22c937bbd8ebd703f2d8e9445f7dfd03=f046f4b7-ab28-4620-9f4c-d062cd9aa99a; gr_cs1_f046f4b7-ab28-4620-9f4c-d062cd9aa99a=user_id%3A0; _vwo_uuid_v2=EEA2C0665932C989AA57000B3C5DAF60|c6060e7fe2cfe9cbad2468c1b5176fd6; __utma=30149280.1825437157.1515404241.1515404241.1515404241.2; __utmb=30149280.5.10.1515404241; __utmc=30149280; __utmz=30149280.1515404241.2.2.utmcsr=baidu|utmccn=(organic)|utmcmd=organic; __utmt_douban=1; __utmt=1; ps=y; push_noty_num=0; push_doumail_num=0; __utmv=30149280.17229; __yadk_uid=LkXQQxyu8J0VAxcqP3OYAACDx4t6sckJ'
for line in raw_cookies.split(';'):
    key, value = line.split('=', 1)  # 1代表只分一次，得到两个数据
    cookies[key] = value
url = 'https://movie.douban.com/subject/26874517/comments?start=220&limit=20&sort=new_score&status=P&percent_type='
req = requests.get(url, cookies=cookies,headers=headers)
print(req.text)
html = pq(req.text)
print(html('.next').attr('href'))

# ?start=240&limit=20&sort=new_score&status=P&percent_type=
# ?start=260&limit=20&sort=new_score&status=P&percent_type=